package org.lemon.cla.dto.request;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.lemon.cla.enums.BookStatusEnum; // 导入图书状态枚举

@Data
@Schema(description = "图书模糊查询请求对象")
public class BookSearchRequest {

    @Schema(description = "ISBN关键词 (模糊查询)", example = "978")
    private String isbn;

    @Schema(description = "书名关键词 (模糊查询)", example = "Spring")
    private String title;

    @Schema(description = "图书状态", example = "可借", allowableValues = {"可借", "已借", "预约中", "维护中"})
    private BookStatusEnum status; // 精确匹配，也可以根据需求改成模糊匹配

    @Schema(description = "出版社关键词 (模糊查询)", example = "人民邮电")
    private String publisher;

    @Schema(description = "作者关键词 (模糊查询)", example = "张")
    private String author;

    @Schema(description = "存放位置关键词 (模糊查询)", example = "A区")
    private String location;
}